package com.egao.common.module.credits.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.egao.common.core.web.PageParam;
import com.egao.common.module.credits.entity.Credits;

import java.util.List;

/**
 * @author lym
 * @date 2022/1/20 13:43
 */
public interface CreditsService extends IService<Credits> {

    /**
     * 查询单个项目学分
     * @param type 类型
     * @param businessId 业务ID
     * @return Credits
     */
    Credits get(String type, Integer businessId);

    /**
     * 添加
     * @param credits Credits
     */
    void saveCredits(Credits credits);

    /**
     * 修改
     * @param credits Credits
     */
    void updateCredits(Credits credits);

    /**
     * 删除
     * @param credits Credits
     */
    void deletedCredits(Credits credits);

    /**
     * 分页查询
     * @param page 分页查询参数
     * @return List<Credits>
     */
    List<Credits> listPage(PageParam<Credits> page);
}
